package cnpm02.j2ee.group3.model;


public enum Gender {
	MALE,
	FEMALE;
	
	/**
	 * Get the name of gender in specific language.
	 * @param language {@link SupportedLanguage}
	 * @return value of gender {@link String}
	 * */
	public String getNameByLanguage(SupportedLanguage lang) {
		switch (lang) {
		case VI:
			if(this == MALE) {
				return "Nam";
			} else {
				return "Nữ";
			}
		case EN:
			if(this == MALE) {
				return "Male";
			} else {
				return "Female";
			}
		default:
			return "Unknown";
		}
	}
}